#!/bin/bash

sum()
{
	sum=$[$1+$2]
	echo $sum
	return $sum
}

read -p "please input the first value " n1
read -p "please input the second value " n2

sum $n1 $n2

echo $?
